﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BagManager : MonoBehaviour {

    //1,2,3,4
    private Text[] texts;
    private void Start()
    {
        texts = GetComponentsInChildren<Text>();
    }
    public void Initalize()
    {
        for(int i=0;i<texts.Length;i++)
        {
            texts[i].text = "x0";
        }
    }
    private void ChangeNumber(int index, int number)
    {
        texts[index].text=( int.Parse(texts[index].text) + number).ToString();
    }
}
